Fix visibility of error handlers
authorJakub Vrana <jakub@vrana.cz>
Sat, 4 May 2013 17:10:06 +0000 (10:10 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sat, 4 May 2013 17:10:06 +0000 (10:10 -0700)
commit26964375066318b2a581fd454972ea3dfcdde783
treed33e66593428a0cbd170c22a5d1ceffb2960e64c
parent95d1b998af46ad23251dfc5a02fd91ff8e3652ea
Fix visibility of error handlers

I've hit this error when $wgDBuser didn't have access to $wgDBname.
I've also checked all other error handlers in core.

An alternative approach would be to use an anonymous function but it doesn't support $this until PHP 5.4 so it would be messier.

Change-Id: I89db2e8c88b84d9b53c4b828ac0208b05a3d3783
includes/db/Database.php
includes/filebackend/FSFileBackend.php